<?php /* Smarty version 2.6.21, created on 2009-07-21 19:01:36
         compiled from user_list.tpl */ ?>
<h1>Управление пользователями</h1>

<div style="width: 50%">
<div class="table_body">
<table class="text">
<tr><th>Логин</th><th>Полное имя</th><th>Дата создания</th><th>Дата изменения</th><th>&nbsp;</th></tr>
<?php $_from = $this->_tpl_vars['Users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['User']):
?>
<tr>
    <td><?php echo $this->_tpl_vars['User']->login; ?>
</td>
    <td class="mixed"><?php echo $this->_tpl_vars['User']->full_name; ?>
</td>
    <td class="number"><?php echo $this->_tpl_vars['User']->create_date; ?>
</td>
    <td class="number"><?php if ($this->_tpl_vars['User']->update_date != '0000-00-00 00:00:00'): ?><?php echo $this->_tpl_vars['User']->update_date; ?>
<?php else: ?>не доступно<?php endif; ?></td>
    <td>
        <?php if ($this->_tpl_vars['fvConfig']->get('modules.users.access.enable') && $this->_tpl_vars['fvUser']->check_acl($this->_tpl_vars['fvConfig']->get('modules.users.access.acl'),'edit')): ?>
        <A 
           href="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
users/edit/?id=<?php echo $this->_tpl_vars['User']->getPk(); ?>
" 
        onclick="go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
users/edit/?id=<?php echo $this->_tpl_vars['User']->getPk(); ?>
'); return false;"
        ><img src="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
img/edit_icon.png" title="редактировать" width="16" height="16"></a>
        <?php endif; ?><?php if (! $this->_tpl_vars['User']->is_root): ?><?php if ($this->_tpl_vars['fvConfig']->get('modules.users.access.enable') && $this->_tpl_vars['fvUser']->check_acl($this->_tpl_vars['fvConfig']->get('modules.users.access.acl'),'delete')): ?><a
           href="javascript: void(0);" 
        onclick="if (confirm('Вы действительно желаете удалить менежера?')) go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
users/delete/?id=<?php echo $this->_tpl_vars['User']->getPk(); ?>
'); return false;"
        ><img src="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
img/delete_icon.png" title="удалить" width="16" height="16"></a>
       </td>
       <?php endif; ?>
       <?php else: ?>
       &nbsp;
       <?php endif; ?>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>
</div>
<?php if ($this->_tpl_vars['Users']->hasPaginate()): ?>
<div id="user_paging" class="paging">
<?php echo $this->_tpl_vars['Users']->showPager(); ?>

<?php echo '
<script>
    new Pager("user_paging");
</script>
'; ?>

</div>
<?php endif; ?>
<div class="operation">
    <a href="<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
users/edit/" onclick="go('<?php echo $this->_tpl_vars['fvConfig']->get('dir_web_root'); ?>
users/edit/'); return false;" class="add">добавить</a>
    <div style="clear: both;"></div>
    
</div>
</div>